package cc.yugu.yhdw.webserver.persistence.hdw;


import cc.yugu.yhdw.common.domain.hdw.ExchangePriceTime;
import cc.yugu.yhdw.common.persistence.MasterMapper;

import java.util.List;
/**
 * 换电次数价格
 *
 * @Date:Created in 2018/6/30 16:38
 * @Author:
 * @Modified By: zjn 2018/6/30 16:38
 */
public interface ExchangePriceTimeMapper extends MasterMapper {
    /**
    * 分页查询
    *
    * @Param: [exchangePriceTime]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.hdw.ExchangePriceTime>
    * @Author By: zjn 2018/6/30  16:39
    */
    List<ExchangePriceTime> findPageResult(ExchangePriceTime exchangePriceTime);
    /**
    * 根据主键查询表hdw_exchange_price_time
    *
    * @Param: [id]
    * @Return: cc.yugu.yhdw.common.domain.hdw.ExchangePriceTime
    * @Author By: zjn 2018/6/30  16:39
    */
    ExchangePriceTime find(Long id);
    /**
    * 插入
    *
    * @Param: [exchangePriceTime]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:39
    */
    int insert(ExchangePriceTime exchangePriceTime);
    /**
    * 根据主键更新
    *
    * @Param: [exchangePriceTime]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:39
    */
    int update(ExchangePriceTime exchangePriceTime);
    /**
    * 根据主键删除
    *
    * @Param: [id]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:39
    */
    int delete(Long id);
    /**
    * 根据价格id删除
    *
    * @Param: [priceId]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:39
    */
    int deleteByPriceId(Long priceId);
    /**
    * 查询，返回行数
    *
    * @Param: [search]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:39
    */
    int findPageCount(ExchangePriceTime search);
}
